#include "ThreadPool.hpp"
using namespace ThreadPoolModule;
using namespace TaskModule;
int main()
{
    ENABLE_CONSOLE_LOG();
    // ENABLE_FILE_LOG();

    std::unique_ptr<ThreadPool<task_t>> tp = std::make_unique<ThreadPool<task_t>>();
    tp->Start();

    int cnt = 10;
    char c;
    while (cnt)
    {
        tp->Equeue(TaskModule::task);
        cnt--;
        sleep(1);
    }
    tp->Stop();

    sleep(3);

    tp->Wait();

    return 0;
}
